/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import functions.HealingSet;
import java.sql.Date;
import stuff.FDate;

/**
 *
 * @author JArik
 */
public class Visit extends Item{

    private Doctor doctor;
    private Date date;
    private String descr;
    private String recommendations, status;

    private double visitPayed, visitOtherPayed , otherCosts;
    private boolean cardPayment;
    private HealingSet visits;

    public Visit()
    {
        
    }
    public boolean isCardPayment() {
        return cardPayment;
    }

    public void setCardPayment(boolean cardPayment) {
        this.cardPayment = cardPayment;
    }


    public void setVisitPayed(double vp)
    {
        visitPayed = vp;
    }
    public void setVisitOtherPayed(double vop)
    {
        visitOtherPayed = vop;
    }
    public double getVisitPayed()
    {
        return visitPayed;
    }
    public double getVisitOtherPayed()
    {
        return visitOtherPayed;
    }
    public double getPayed()
    {
        return visitOtherPayed+visitPayed;
    }
    public String getDescr()
    {
        return descr;
    }
    public FDate getDisDate()
    {
        if(date == null) return null;
        return new FDate(date.getTime());
    }
    public Date getDisSQLDate()
    {
        if(date == null) return null;
        return new Date(date.getTime());
    }

    public String getRecom() {
        return recommendations;
    }
    public void setDescr(String nDesc)
    {
        descr = nDesc;
    }

    public void setRecom(String rec)
    {
        recommendations = rec;
    }
    public void setDisDate(Date nDate)
    {
        date = nDate;
    }
    public String toString()
    {
        return descr;
    }

    public void setOtherPrice(double aDouble) {
        otherCosts = aDouble;
    }
    public double getOtherPrice()
    {
        return otherCosts;
    }

    public void setBelongsToHealing(HealingSet visits) {
        this.visits = visits;
    }
    public HealingSet getHealing()
    {
        return visits;
    }
        public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
